using System;
using System.Collections.Generic;
using System.Windows.Forms;

using System.Threading;
using DAXweb;

namespace Parsifal
{
     

    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        /// 

        static public frmSplash formSp;
        static public Form1 formMain;


        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            formSp = new frmSplash();

            Thread pTh = new Thread(new ThreadStart(ExecuteFunction));
            pTh.Start();

            //Thread.Sleep(3000);

            formMain = new Form1();
            

            

            //formSp.Invoke(new ThreadStart(formSp.Close));


            //pTh.Join();
            pTh.Abort();


            Application.Run(formMain);
        }

        static private void ExecuteFunction()
        {

            Application.Run(formSp);
        }

        //[STAThread]
        //static void Main()
        //{
        //    Application.EnableVisualStyles();
        //    Application.SetCompatibleTextRenderingDefault(false);
        //    Application.Run(new Form1());
        //}


       
    }
  
}